// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import router from './router'
// import { VueSpinners } from '@saeris/vue-spinners'
import api from './api/index'
import vuelidate from 'vuelidate'
import App from './App'

//page loading ..
// Vue.use(VueSpinners)

//注册接口
Vue.use(api, { router : router })

Vue.use(vuelidate)

// import 'bootstrap/dist/js/bootstrap'
import jQuery from 'jquery'
window.$ = window.jQuery = jQuery

// import toast
import '@/assets/toast/toast.js'
import '@/assets/toast/toast.css'

import '@/assets/grid/grid.js'

import './assets/iconfont/iconfont.css'
import 'popper.js'
import 'bootstrap'

import 'bootstrap/dist/js/bootstrap'
import 'bootstrap/dist/css/bootstrap.min.css'
// import plugins individually - require exports-loader
//import 'bootstrap/js/dist/modal'
//import 'bootstrap/js/dist/tooltip'

// import 'bootstrap/dist/css/bootstrap.min.css'
// import 'bootstrap/scss/bootstrap.scss'

import './assets/app.scss'
import '@/assets/form.scss'
import '@/assets/grid/grid.scss'
import './assets/app.css'

// jquery

Vue.config.productionTip = false

/* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   router,
//   store,
//   components: { App },
//   template: '<App/>'
// })

new Vue({
  router,
  render: h => h(App)
}).$mount('#app');